﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WoSoft.PACS.Data.Models
{
    /// <summary>
    /// 数据源
    /// </summary>
    public class DataSourceModel
    {
        /// <summary>
        /// ID
        /// </summary>
        public int ID { get; set; }

        /// <summary>
        /// 业务类型
        /// </summary>
        public string YwType { get; set; }

        /// <summary>
        /// 数据源名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 数据库类型,1:Oracle,2:Sqlserver,3:Sybase
        /// </summary>
        public int DatabaseType { get; set; }

        /// <summary>
        /// 服务器IP
        /// </summary>
        public string ServerIP { get; set; }

        /// <summary>
        /// 实例名称
        /// </summary>
        public string Instance { get; set; }

        /// <summary>
        /// 数据库名称(如果是Oracle则是实例名称,sqlserver则需要数据库名称)
        /// </summary>
        public string DatabaseName { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 登录密码
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// 登录密码
        /// </summary>
        public int DefaultUser { get; set; }

        /// <summary>
        /// 查询语句
        /// </summary>
        public string SqlText { get; set; }
    }
}
